package com.blog.dao;

import com.blog.entity.Comment;

import java.util.List;
import java.util.Map;

//评论
public abstract interface CommentDao {

    //添加一条评论
    int add(Comment paramComment);

    //更新评论的审核信息
    int update(Comment paramComment);

    //删除评论
    Integer delete(Integer paramInteger);

    //查询评论
    List<Comment> list(Map<String, Object> paramMap);

    //评论数
    Long getTotal(Map<String, Object> paramMap);

    //根据博客ID删除评论
    public int deleteByBlogId(int blogId);

}

